<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <h3>Echarts图表</h3>
    <div id="main" style="width: 800px;height:700px;"></div>

    <script crossorigin="anonymous"
        integrity="sha512-hjx+SPhu1qxXHVo0A5AfAiso7QfjsF59qQVEbNgLpef2vwPJsiWd9Mv5ms0TNHFlRETxIaWzbN3WaSYbt+2aLQ=="
        src="https://lib.baomitu.com/echarts/5.2.0/echarts.common.js"></script>
    <script>
        var myChart = echarts.init(document.getElementById('main'))

        // 指定图表的配置项和数据
        option = {
            legend: {
                top: 'bottom'
            },
            toolbox: {
                show: true,
                feature: {
                    mark: { show: true },
                    dataView: { show: true, readOnly: false },
                    restore: { show: true },
                    saveAsImage: { show: true }
                }
            },
            series: [
                {
                    name: 'Nightingale Chart',
                    type: 'pie',
                    radius: [50, 250],
                    center: ['50%', '50%'],
                    roseType: 'area',
                    itemStyle: {
                        borderRadius: 8
                    },
                    data: [
                        { value: 40, name: 'rose 1' },
                        { value: 38, name: 'rose 2' },
                        { value: 32, name: 'rose 3' },
                        { value: 30, name: 'rose 4' },
                        { value: 28, name: 'rose 5' },
                        { value: 26, name: 'rose 6' },
                        { value: 22, name: 'rose 7' },
                        { value: 18, name: 'rose 8' }
                    ]
                }
            ]
        };

        myChart.setOption(option)
        // echarts图表  自己找个地图

        // 做一个echarts的组件  
        // <my-echarts/>
        // <my-echarts type="line"/>
        // <my-echarts type="pie"/>

        // 动态传递过去数据

        // 
    </script>
</body>

</html>